find the longest palindromic subsequence

join shbcf.ru